package com.syax.bjtax.sjjh.GSWebService;

import com.syax.bjtax.sjjh.GSWebService.exception.database.DBException;

public class GSGeneralWebServiceProxy implements GSGeneralWebService {
  private String _endpoint = null;
  
  private String _username = null;
  
  private String _password = null;
  
  private GSGeneralWebService gSGeneralWebService = null;
  
  public GSGeneralWebServiceProxy() {
    _initGSGeneralWebServiceProxy();
  }
  
  public GSGeneralWebServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initGSGeneralWebServiceProxy();
  }
  
  private void _initGSGeneralWebServiceProxy() {
    try {
      gSGeneralWebService = (new GSGeneralWebServiceServiceLocator()).getGSWebService();
      if (gSGeneralWebService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)gSGeneralWebService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)gSGeneralWebService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (gSGeneralWebService != null)
      ((javax.xml.rpc.Stub)gSGeneralWebService)._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, _endpoint);
  }
  
  
  public String getPassword() {
		return _password;
	}

	public void setPassword(String password) {
		_password = password;
		if (gSGeneralWebService != null)
			((javax.xml.rpc.Stub) gSGeneralWebService)._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, _password);
	}

	public String getUsername() {
		return _username;
	}

	public void setUsername(String username) {
		_username = username;
		if (gSGeneralWebService != null)
			((javax.xml.rpc.Stub) gSGeneralWebService)._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, _username);
	}
  
  public GSGeneralWebService getGSGeneralWebService() {
    if (gSGeneralWebService == null)
      _initGSGeneralWebServiceProxy();
    return gSGeneralWebService;
  }
  
  public java.util.HashMap query(java.util.HashMap in0) throws java.rmi.RemoteException, DBException{
    if (gSGeneralWebService == null)
      _initGSGeneralWebServiceProxy();
    return gSGeneralWebService.query(in0);
  }
  
  public java.lang.String queryData(java.lang.String in0) throws java.rmi.RemoteException, DBException{
    if (gSGeneralWebService == null)
      _initGSGeneralWebServiceProxy();
    return gSGeneralWebService.queryData(in0);
  }
  
  
}